package com.ou.csbs.capstone.models;

import com.ou.csbs.capstone.gridlines.LatLongLayer;
import com.ou.csbs.capstone.gridlines.UTMLayer;
import com.ou.csbs.capstone.views.worldwind.WorldWindCanvas;

import gov.nasa.worldwind.layers.RenderableLayer;
/**
 * The Renderable Model holds all layers where any form of rendering occurs, including the Graticule layers and the drawing layer.
 * The only exception is the ExtendedUTMLayer, which is created whenever it is selected to be drawn.
 * Layers are turned off and on through the WorldWindCanvas' Layer handler by name.
 * 
 * @author Senior Capstone
 */
public class RenderableModel {
	private RenderableLayer drawingLayer;
	private LatLongLayer latLong;
	private UTMLayer utm;

	public RenderableModel(){
		latLong = new LatLongLayer();
		latLong.setEnabled(false);
		WorldWindCanvas.addLayer(latLong);
		
		utm = new UTMLayer();
		utm.setEnabled(false);
		WorldWindCanvas.addLayer(utm);
		
		drawingLayer = new RenderableLayer();
		drawingLayer.setName("Drawing Layer");
		WorldWindCanvas.addLayer(drawingLayer);
	}
	
	public RenderableLayer getDrawingLayer(){
		return this.drawingLayer;
	}
}
